package com.example.zk2.db

import android.app.Application
import androidx.room.Room

class AppDbUtils {
    companion object{
        private lateinit var appDb: AppDb
        fun init(application: Application){
            appDb = Room.databaseBuilder(application,AppDb::class.java,"zk2.db")
                .allowMainThreadQueries()
                .build()
        }
        fun getAppDb():AppDb = appDb

    }
}